package com.sancai.fruit.ui;

import android.util.Log;
import android.view.View;

import com.sancai.fruit.R;
import com.sancai.fruit.base.BaseActivity;
import com.sancai.fruit.base.BasePresenterIm;
import com.sancai.fruit.bean.Movie;
import com.sancai.fruit.contract.MianActivityContract;
import com.sancai.fruit.presenter.MianActivityPresenter;

public class MainActivity extends BaseActivity<MianActivityPresenter, Movie> implements MianActivityContract.View {


    @Override
    protected void reloadActivity() {

    }

    @Override
    protected View injectTarget() {
        return findViewById(R.id.injectview);
    }

    @Override
    protected void initData() {
        mPresenter.getData("0", "1");
    }

    @Override
    protected void initView() {

    }

    @Override
    public int getContenView() {
        return R.layout.activity_main;
    }

    @Override
    public void showDataSuccess(Movie datas) {
        Log.i(TAG, "showDataSuccess: ");

    }

    @Override
    public void showDataError(String errorMessage) {
        Log.i(TAG, errorMessage);
    }

    @Override
    public MianActivityPresenter getPresenter() {
        return new MianActivityPresenter();
    }
}
